public static void Register(HttpConfiguration config)
{
var corsAttr = new EnableCorsAttribute("http://example.com", "*", "*");
config.EnableCors(corsAttr);
}
public static void Register(HttpConfiguration config)
{
// New code
config.EnableCors();
}
Response.AppendHeader("Access-Control-Allow-Origin", "*");